<?php
/**
 * Created by PhpStorm.
 * User: Martin.Wu
 * Date: 2020/5/8
 * Time: 10:52
 *
 **/
namespace common\strategy\judge;
use common\strategy\StrategyAbstract;

class Status extends StrategyAbstract
{
    public function doAction($data)
    {
        //如果判断字符串是否在数组中的判断
        if (isset($data['status'])) {
            if (isset($data['status']) && isset($data['value'])) {
                return ($data['status'] == $data['value']);
            }
        }

        return false;
    }
}